//
//  ResourceTool.hpp
//  myhttpserver
//
//  Created by tgy on 2018/3/21.
//  Copyright © 2018年 tgy. All rights reserved.
//

#ifndef ResourceTool_hpp
#define ResourceTool_hpp

#include <stdio.h>
#include "Resource.hpp"

#include <string>
class ResourceTool {

private:
    std::string basePath;
    std::string relativePath;
    Resource *readFile();
    Resource *readDir();
    
public:
    
    ResourceTool(){
        
    }
    ResourceTool(std::string basePath,std::string relativePath){
        
        this->basePath = basePath;
        this->relativePath = relativePath;
    }
//    读文件
    Resource *readServer();
    
    void setBasePath(std::string basePath);
    std::string getBasePath();
    void setRelativePath(std::string relativePath);
    std::string getRelativePath();
};

#endif /* ResourceTool_hpp */
